package persistence;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigInteger;


/**
 * The persistent class for the Firm_has_Assests database table.
 * 
 */
@Entity
@Table(name="Firm_has_Assests")
public class Firm_has_Assest implements Serializable {
	private static final long serialVersionUID = 1L;
	private Firm_has_AssestPK id;
	private BigInteger auuAmount;
	private Assest assest;
	private Firm firm;

    public Firm_has_Assest() {
    }


	@EmbeddedId
	public Firm_has_AssestPK getId() {
		return this.id;
	}

	public void setId(Firm_has_AssestPK id) {
		this.id = id;
	}
	

	public BigInteger getAuuAmount() {
		return this.auuAmount;
	}

	public void setAuuAmount(BigInteger auuAmount) {
		this.auuAmount = auuAmount;
	}


	//bi-directional many-to-one association to Assest
    @ManyToOne
	@JoinColumn(name="Assests_idAssests",insertable=false,updatable=false)
	public Assest getAssest() {
		return this.assest;
	}

	public void setAssest(Assest assest) {
		this.assest = assest;
	}
	

	//bi-directional many-to-one association to Firm
    @ManyToOne
	@JoinColumns({
		@JoinColumn(name="Firm_crd", referencedColumnName="crd",insertable=false,updatable=false),
		@JoinColumn(name="Firm_idFirm", referencedColumnName="idFirm",insertable=false,updatable=false)
		})
	public Firm getFirm() {
		return this.firm;
	}

	public void setFirm(Firm firm) {
		this.firm = firm;
	}
	
}